package com.boxee;

import com.engine.Engine;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;

public class Boxee extends Activity
{
	private static final String TAG = Boxee.class.getSimpleName();

	private Engine engine;

	public Boxee()
	{
		this.engine = new Engine();
	}

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

	    this.engine.Initialize(this);

	    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);

	    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
	                         WindowManager.LayoutParams.FLAG_FULLSCREEN);

	    setContentView(this.engine.getView());

	    Log.d(TAG, "View added");
    }

	protected void onDestroy()
	{
		Log.d(TAG, "Destroying...");
		super.onDestroy();
	}

	protected void onStop()
	{
		Log.d(TAG, "Stopping...");
		super.onStop();
	}
}
